// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_TECHNIC
// * CreateDate    : 2012/3/23 19:09:55
// * Creater       : CodeSmith
// * LastChangeDate: 2012/3/23 19:09:55
// * LastChanger   : 2012/3/23 19:09:55
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class ProdTechnicEntity : EntityBase
    {
        public ProdTechnicTable TableSchema
        {
            get
            {
                return ProdTechnicTable.Current;
            }
        }

        public ProdTechnicEntity()
        {

        }

        public ProdTechnicEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
            this.TechnicCode = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_CODE"]));
            this.TechnicName = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_NAME"]));
            this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
            this.StationType = Convert.ToString(CommonFunctions.ToObject(dr["STATION_TYPE"]));
            this.DeleteFlag = Convert.ToInt32(CommonFunctions.ToObject(dr["DELETE_FLAG"]));
            this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
            this.GroupId = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_ID"]));
        }

        public ProdTechnicEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
            this.TechnicCode = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_CODE"]));
            this.TechnicName = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_NAME"]));
            this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
            this.StationType = Convert.ToString(CommonFunctions.ToObject(dr["STATION_TYPE"]));
            this.DeleteFlag = Convert.ToInt32(CommonFunctions.ToObject(dr["DELETE_FLAG"]));
            this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
            this.GroupId = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_ID"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdTechnicTable.Current;
            }
        }

        #region Perporty List
        public string TechnicId
        {
            get { return Convert.ToString(GetData(ProdTechnicTable.C_TECHNIC_ID)); }
            set { SetData(ProdTechnicTable.C_TECHNIC_ID, value); }
        }

        public string TechnicCode
        {
            get { return Convert.ToString(GetData(ProdTechnicTable.C_TECHNIC_CODE)); }
            set { SetData(ProdTechnicTable.C_TECHNIC_CODE, value); }
        }

        public string TechnicName
        {
            get { return Convert.ToString(GetData(ProdTechnicTable.C_TECHNIC_NAME)); }
            set { SetData(ProdTechnicTable.C_TECHNIC_NAME, value); }
        }

        public int Sequence
        {
            get { return Convert.ToInt32(GetData(ProdTechnicTable.C_SEQUENCE)); }
            set { SetData(ProdTechnicTable.C_SEQUENCE, value); }
        }

        public string StationType
        {
            get { return Convert.ToString(GetData(ProdTechnicTable.C_STATION_TYPE)); }
            set { SetData(ProdTechnicTable.C_STATION_TYPE, value); }
        }

        public int DeleteFlag
        {
            get { return Convert.ToInt32(GetData(ProdTechnicTable.C_DELETE_FLAG)); }
            set { SetData(ProdTechnicTable.C_DELETE_FLAG, value); }
        }

        public string Description
        {
            get { return Convert.ToString(GetData(ProdTechnicTable.C_DESCRIPTION)); }
            set { SetData(ProdTechnicTable.C_DESCRIPTION, value); }
        }

        public string GroupId
        {
            get { return Convert.ToString(GetData(ProdTechnicTable.C_GROUP_ID)); }
            set { SetData(ProdTechnicTable.C_GROUP_ID, value); }
        }

        #endregion
    }


}

